import request from '@/utils/request'

// 查询延迟退休列表
export function listDelayRetire(query) {
  return request({
    url: '/system/delayRetire/list',
    method: 'get',
    params: query
  })
}

// 查询延迟退休详细
export function getDelayRetire(id) {
  return request({
    url: '/system/delayRetire/' + id,
    method: 'get'
  })
}

// 新增延迟退休
export function addDelayRetire(data) {
  return request({
    url: '/system/delayRetire',
    method: 'post',
    data: data
  })
}

// 修改延迟退休
export function updateDelayRetire(data) {
  return request({
    url: '/system/delayRetire',
    method: 'put',
    data: data
  })
}

// 删除延迟退休
export function delDelayRetire(id) {
  return request({
    url: '/system/delayRetire/' + id,
    method: 'delete'
  })
}
